#ifndef EPUBZLIB_EPUB_ZLIB_API_H
#define EPUBZLIB_EPUB_ZLIB_API_H

#if defined(_MSC_VER)
#define API_PUBLIC_20210915 extern "C" __declspec(dllexport)
#elif defined(__GNUC__)
#define API_PUBLIC_20210915 extern "C" __attribute__((visibility("default")))
#endif

typedef void(EpubZLIB_OnZipProcessListener)(void *params, char const *name, int step);

#ifdef __cplusplus
extern "C" {
#endif

API_PUBLIC_20210915
void EpubZLIB_Init(int num);

API_PUBLIC_20210915
void EpubZLIB_Set(int num, void *params, EpubZLIB_OnZipProcessListener *listener);

API_PUBLIC_20210915
void EpubZLIB_Add(int num, char const *path);

API_PUBLIC_20210915
void EpubZLIB_Compress(int num, char const *path);

#ifdef __cplusplus
}
#endif

#endif//EPUBZLIB_EPUB_ZLIB_API_H
